<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素溢出</title>
    <style>
        div{
            width: 500px;
            height: 500px;
            background-color: yellow;
            overflow: visible;/*溢出可见*/
            overflow: hidden;/*溢出隐藏，多余的裁剪掉*/
            overflow: auto;/*在溢出的方向才显示拖拽条*/
            overflow: scroll;/*无论是否溢出之间显示拖拽条*/
        }
    </style>
</head>
<body>
    <div>
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
        <img src="../铠甲1.jfif">
    </div>
</body>
</html>